﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.WaypointPlanSuccessToolTipImageConvertor
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.Globalization;
using System.Resources;
using System.Windows.Data;


namespace DnProcessSimulateCommands;

public class WaypointPlanSuccessToolTipImageConvertor : IValueConverter
{
  public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  {
    CApAPPWaypointPlanSuccess waypointPlanSuccess = (CApAPPWaypointPlanSuccess) value;
    string str = "";
    ResourceManager resourceManager = new ResourceManager("DnProcessSimulateCommands.StringTable", this.GetType().Assembly);
    switch (waypointPlanSuccess)
    {
      case CApAPPWaypointPlanSuccess.CalcSuccess:
        str = resourceManager.GetString("AUTO_PATH_PLAN_SUCCESS_LOC_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.Cancel:
        str = resourceManager.GetString("AUTO_PATH_PLAN_CANCEL_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.CalcFail:
        str = resourceManager.GetString("AUTO_PATH_PLAN_FAIL_TIMEOUT");
        break;
      case CApAPPWaypointPlanSuccess.WaitingForCalc:
        str = resourceManager.GetString("AUTO_PATH_PLAN_PROCESSING_LOC_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.Collision:
        str = resourceManager.GetString("AUTO_PATH_PLAN_COLLIDING_LOC_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.WaitingBeforeCalc:
        str = resourceManager.GetString("AUTO_PATH_PLAN_WAITING_BEFORE_PLAN_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.LocReachFail:
        str = resourceManager.GetString("AUTO_PATH_PLAN_UNREACHABLE_LOC_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.OutOfLimits:
        str = resourceManager.GetString("AUTO_PATH_PLAN_FAIL_OUT_OF_LIMITS_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.TwistedCable:
        str = resourceManager.GetString("AUTO_PATH_PLAN_TWISTED_CABLE_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.SingularityZone:
        str = resourceManager.GetString("AUTO_PATH_PLAN_SINGULARITY_ZONE_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.RotationLimitsExceededError:
        str = resourceManager.GetString("AUTO_PATH_PLAN_ROTATION_LIMITS_EXCEEDED_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.TranslationLimitsExceededError:
        str = resourceManager.GetString("AUTO_PATH_PLAN_TRANSLATION_LIMITS_EXCEEDED_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.TranslationAndRotationLimitsExceededError:
        str = resourceManager.GetString("AUTO_PATH_PLAN_TRANSLATION_ROTATION_LIMITS_EXCEEDED_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.PreProcessingSuccess:
        str = resourceManager.GetString("AUTO_PATH_PLAN_PREPROCESSING_SUCCESS_LOC_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.PostProcessingSuccess:
        str = resourceManager.GetString("AUTO_PATH_PLAN_POSTPROCESSING_SUCCESS_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.PostProcessingCollisionError:
        str = resourceManager.GetString("AUTO_PATH_PLAN_POSTPROCESSING_COLLISION_ERROR_TOOLTIP");
        break;
      case CApAPPWaypointPlanSuccess.PostProcessingSimulationError:
        str = resourceManager.GetString("AUTO_PATH_PLAN_POSTPROCESSING_SIMULATION_ERROR_TOOLTIP");
        break;
    }
    return str == "" ? (object) null : (object) str;
  }

  public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  {
    throw new NotImplementedException();
  }
}
